<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');


function is_auth($auth){
    
    if(strlen($auth) == 0)
        return false;
    
    $ar = explode(":", $auth);
    
    if(count($ar) != 2)
        return false;
    if(strlen($ar[0]) == 0 || strlen($ar[1]) == 0)
        return false;
    
}